﻿using Dm.util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yitter.IdGenerator;

namespace EquipmentManagement.Domain.Entities
{
    /// <summary>
    /// 公共实体
    /// </summary>
    public class BaseEntity
    {

        /// <summary>
        /// 主键
        /// </summary>
        [SqlSugar.SugarColumn(IsPrimaryKey = true, Length = 15)]
        public string ID { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreatedUserName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string? UpdateUserName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = true)]
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 删除状态
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}
